package org.hxyjs.dao;

import org.hxyjs.entity.Programme;
import org.hxyjs.page.PageInfo;

import java.util.List;

public interface ProgrammeDao {

    //查询全部
    public List<Programme> getAllProgrammes() throws Exception;

    //按主键查询
    public Programme getProgrammeByPrno(String prno) throws Exception;

    //分页查询
    public List<Programme> getProgrammeByPage(PageInfo pageInfo) throws Exception;

    //增删改的返回值都是整数
    //增加
    Integer addProgramme(Programme programme) throws Exception;

    //删除
    Integer deleteProgrammeByPrno(String prno) throws Exception;

    //修改
    Integer updateProgrammeByPrno(Programme programme) throws Exception;


}
